package net.dgg.dggcloud.service.jrcrm.dao.orf;

import net.dgg.dggcloud.core.minidao.annotation.MiniDao;
import net.dgg.dggcloud.core.minidao.hibernate.MiniDaoSupportHiber;
import net.dgg.dggcloud.service.jrcrm.entity.orf.PerformancePrefit;

import java.util.List;
import java.util.Map;

/**
 *  财务 --- 业绩。利润
 *
 * @author 郭伟 2017/11/2
 */
@MiniDao
public interface PerformanceDao extends MiniDaoSupportHiber<PerformancePrefit> {


    List<Map> listPerformanceMap(Map map);

    Map performanceMap(Map map);

    List<Map> getPerformanceMap(Map map);

    void deletePerformanceList(Map map);

    /**
     * 通过订单id统计财务核款信息
     * @return
     */
    List<Map> queryTotoalOfOrderByMap(Map map);


    List<Map>  getPerformanceSum(Map map);

    List<Map>  getUpdateReimbursePerformanceSum(Map map);

    Long getUserOrgPerformance(Map map);

    List<Map> workPerformanceTeamTop5(Map map);

   Long performanceTeamSum(Map map);

    /**
     *  业绩数据
     * @param map
     * @return
     */
    List<Map> queryPerformanceProfitExcel(Map map);

    List<Map> queryLoanExcel(Map map);

}
